<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5"
      xmlns:th="http://www.thymeleaf.org"><!-- 声明Thymeleaf的命名空间 -->
<head>
	<meta charset="UTF-8">
	<meta content="webkit" name="renderer">
	<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
	<meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport">
	<link href=" ./favicon.ico" rel="shortcut icon"/>
	<title>首页</title>
</head>

<body>
<h6>Welcome to Thymeleaf</h6>
<div sec:authorize="isAuthenticated()">
	Hello <span sec:authentication="name">someone</span>
</div>
<div>
	<ul>
		<li sec:authorize="not isAuthenticated()"><a th:href="@{/user/signup}">signup</a></li>
		<li sec:authorize="not isAuthenticated()"><a th:href="@{/user/login}">login</a></li>
		<li><a th:href="@{/spittr}">latest</a></li>
		<li><a th:href="@{/spittr/fileupload}">fileupload</a></li>
		<li><a th:href="@{/spittr/new}">new spittr</a></li>
		<li sec:authorize="isAuthenticated()"><a th:href="@{/user/logout}">logout</a></li>
	</ul>
</div>
</body>
</html>